package wq.gdky005.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import android.util.Log;

/**
 * 获取src 下面的配置文件信息的工具类
 * @author wangqing
 * 2013-6-6
 */
public class ConfigUtil {
	
	public static Properties getConfig() {
		Properties properties = new Properties();
		InputStream inputStream = ConfigUtil.class
				.getResourceAsStream("/config/config.properties");
		try {
			properties.load(inputStream);
		} catch (IOException e) {
			Log.e("工具包异常", "获取配置文件异常");
			e.printStackTrace();
		}
		return properties;
	}
}
